package org.tissou.client.Services.RecuperationDonneesService;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.core.client.GWT;
import org.tissou.client.DonneesAAfficher.TypeDonnee;
import org.tissou.client.DonneesAAfficher.ParametresQuery;
import org.tissou.client.DonneesAAfficher.Donnees_Base;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 03/03/2009
 * Time: 21:12:32
 * To change this template use File | Settings | File Templates.
 */
public interface RecuperateurDonneesServices extends RemoteService {
  Donnees_Base RecupererDonnees(ParametresQuery parametres);

  /**
   * Utility/Convenience class.
   * Use RecuperateurDonneesServices.App.getInstance() to access static instance of RecuperateurDonneesServicesAsync
   */
  public static class App {
    private static final RecuperateurDonneesServicesAsync ourInstance;

    static {
      ourInstance = (RecuperateurDonneesServicesAsync) GWT.create(RecuperateurDonneesServices.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "RecuperateurDonneesServices");
    }

    public static RecuperateurDonneesServicesAsync getInstance() {
      return ourInstance;
    }
  }
}
